<!DOCTYPE html>
<html lang="en" >
<head>
    <meta charset="utf-8">
    <title></title>
    <meta content="yes" name="apple-mobile-web-app-capable">
    <meta content="yes" name="apple-touch-fullscreen">
    <meta content="telephone=no,email=no" name="format-detection">
    <meta name="viewport" content="width=750, user-scalable=no, target-densitydpi=device-dpi">
    <meta name="flexible" content="initial-dpr=2"/>
    <script type="text/javascript" src="https://alioss.woaap.com/bestseller/zepto.min.js"></script>
    <script type="text/javascript" src="https://alioss.woaap.com/base/flexible_css.js"></script>
    <script type="text/javascript" src="https://alioss.woaap.com/base/flexible.js"></script>
    <script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
</head>
<body>
<form method="post" action="">
    <p>配置名称: <input type="text" name="config_name"></p>
    <p>配置内容: <textarea name="config_content" style="width: 500px; height: 150px;"></textarea></p>
    <p>配置备注: <textarea name="config_remark" style="width: 500px; height: 30px;"></textarea></p>

    <p><button type="submit">新增</button></p>

    <hr />
    <hr />
</form>

@foreach($data as $row)
    <form method="get" action="/admin/config/{{$row->id}}/edit">
        <p>配置名称: {{$row->config_name}}</p>
        <p>配置内容: <textarea name="config_content" style="width: 500px; height: 150px;">{{$row->config_content}}</textarea></p>
        <p>配置备注: <textarea name="config_remark" style="width: 500px; height: 30px;">{{$row->config_remark}}</textarea></p>
        <p><button type="submit">修改</button></p>
        <hr />
    </form>

@endforeach
</body>
</html>